package com.zzg.test2.ui

import android.content.Intent
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import androidx.appcompat.app.AppCompatActivity
import com.zzg.test2.R
import com.zzg.test2.web.WebMainActivity
import com.zzg.test2.web.manage.WebViewPreloader

class SplashActivity: AppCompatActivity () {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_splash)
        WebViewPreloader.initialize(this);
        Handler(Looper.getMainLooper()).postDelayed({
            startActivity(Intent(this, WebMainActivity::class.java))
            finish()
        }, 3000)
    }
}